﻿using Scap.Data;
using Scap.Info;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Scap.Core
{
    public class DeviceHandler
    {     
        public ScapDeviceCollection GetScapDevices()
        {
            ScapDeviceCollection coll = new ScapDeviceCollection();

            using (ScapData db = new ScapData())
            {
                var devs = from d in db.Devices select d;

                foreach (ScapDevice sDev in devs)
                {
                    coll.Add(sDev);
                }
            }

            return coll;
        }
    }
}
